package com.woniuxy.ticketauth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.ticketauth.entity.Perm;
import com.woniuxy.ticketauth.mapper.PermMapper;
import com.woniuxy.ticketauth.service.PermService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName PermServiceImpl
 * @Description TODO
 * @Author zx
 * @Date 2021-03-03 11:44:37
 * @Version 1.0
 */
@Service
public class PermServiceImpl extends ServiceImpl<PermMapper, Perm> implements PermService {

    @Resource
    private PermMapper  permMapper;

    @Override
    public List<Perm> getMenuById(int id) {
        return permMapper.getPermsById(id);
    }

    @Override
    public List<Perm> getMenusById(int id) {
        return permMapper.getMenusById(id);
    }
}
